import service from '@/utils/request'

// @Tags ProgramInfo
// @Summary 创建ProgramInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProgramInfo true "创建ProgramInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /programInfo/createProgramInfo [post]
export const createProgramInfo = (data) => {
  return service({
    url: '/programInfo/createProgramInfo',
    method: 'post',
    data
  })
}

// @Tags ProgramInfo
// @Summary 删除ProgramInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProgramInfo true "删除ProgramInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /programInfo/deleteProgramInfo [delete]
export const deleteProgramInfo = (data) => {
  return service({
    url: '/programInfo/deleteProgramInfo',
    method: 'delete',
    data
  })
}

// @Tags ProgramInfo
// @Summary 删除ProgramInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除ProgramInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /programInfo/deleteProgramInfo [delete]
export const deleteProgramInfoByIds = (data) => {
  return service({
    url: '/programInfo/deleteProgramInfoByIds',
    method: 'delete',
    data
  })
}

// @Tags ProgramInfo
// @Summary 更新ProgramInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProgramInfo true "更新ProgramInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /programInfo/updateProgramInfo [put]
export const updateProgramInfo = (data) => {
  return service({
    url: '/programInfo/updateProgramInfo',
    method: 'put',
    data
  })
}

// @Tags ProgramInfo
// @Summary 用id查询ProgramInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProgramInfo true "用id查询ProgramInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /programInfo/findProgramInfo [get]
export const findProgramInfo = (params) => {
  return service({
    url: '/programInfo/findProgramInfo',
    method: 'get',
    params
  })
}

// @Tags ProgramInfo
// @Summary 分页获取ProgramInfo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取ProgramInfo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /programInfo/getProgramInfoList [get]
export const getProgramInfoList = (params) => {
  return service({
    url: '/programInfo/getProgramInfoList',
    method: 'get',
    params
  })
}
